package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.dto.SpuCrumbDto;
import com.ruoyi.system.domain.vo.CategoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CrumbServiceMapper {

    @Select("select id, name, parent_id as parentId, level from product_category where id = #{categoryId}")
    CategoryVo selectById(Long categoryId);

    SpuCrumbDto getCrumbBySpuId(Long spuId);
}
